﻿
	<div class="post">
		<div class="title">
			<h2><?php echo CHtml::link(CHtml::encode($data->title), $data->url); ?></h2>
		</div>
		<div class="author">
			作者： <?php echo $data->author->username ; ?>
		</div>
		<div class="content">

			<?php
				$this->beginWidget('CMarkdown', array('purifyOutput'=>true));
				echo mb_substr(strip_tags($data->content),0,500).'...';
			?>
			<?php
				$this->endWidget();
			?>
			<span class="read_all"><?php echo CHtml::link(CHtml::encode('阅读全文'), $data->url); ?></span>
		</div>

		<div class="links">
		<b>标签:</b>
		<?php echo implode(', ', $data->tagLinks); ?>		<br>
		<?php echo CHtml::link(CHtml::encode('阅读全文'), $data->url,array('class'=>'permalink')); ?> |
		<?php echo CHtml::link(CHtml::encode('评论('.$data->commentCount.')'), $data->url.'#comments',array('class'=>'comments')); ?></a> |
		<?php //echo CHtml::link(CHtml::encode('rss'), $data->url,array('class'=>'rss')); ?> 
		Last updated on <?php echo date('F j, Y',$data->create_time); ?>
		</div>
	</div>






